$(function() {
	doSearch();
});

function doSearch() {
	var type = $('#type').combobox('getValue');
	var resultCode = $('#resultCode').combobox('getValue');
	var startTime = $('#startTime').datetimebox('getValue');
	var endTime = $('#endTime').datetimebox('getValue');
	
	var xAxis = [];
	var num = [];
	$.ajax({
		url : '/simulator/action/statistics/list',
		data : {
			type : type,
			resultCode : resultCode,
			startTime : startTime,
			endTime : endTime
		},
		type : "POST",
		datatype : "json",
		async : true,
		success : function(data) {
			var xAxis = data.xAxis;
			var yAxis = eval(data.yAxis);
			$.each(yAxis, function(index, mod) {
				num.push(mod.num);
			});
			issueHandler.showHighChart(xAxis, num);
		}
	});
}
